package org.jspar.model;

import org.jspar.tile.Position;

public class TerminalModel {

	private String name;
	private int x;
	private int y;
	private Direction dir;
	private int side;

	public TerminalModel(String name, int x, int y, int side, Direction dir) {
		this.name = name;
		this.x = x;
		this.y = y;
		this.dir = dir;
		this.side  = side;
	}
	public String name() { return name; }
	public int x() { return x; }
	public int y() { return y; }
	public int side() { return side; }
	
	public Terminal create(Module module) {
		return new Terminal(module, name, side, dir, x, y);
	}
	
	public Position position() {
		return new Position(x, y);
	}
}
